﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SecurableWebFormWizard
{
    public partial class GridSettingsForm : Form
    {
        public string PageTitle
        {
            get { return this.txtPageTitle.Text; }
        }

        public string PanelTitle
        {
            get { return this.txtPanelTitle.Text; }
        }

        public string GridName
        {
            get { return this.txtGridName.Text; }
        }

        public string Selection
        {
            get 
            {
                string m_selection = string.Empty;

                if (this.radioSelectionSingle.Checked)
                {
                    m_selection = "Single";
                }

                if (this.radioSelectionMulti.Checked)
                {
                    m_selection = "Multi";
                }

                return m_selection; 
            }
        }

        public string Searching
        {
            get
            {
                string m_search = string.Empty;

                if (this.radioSearchNone.Checked)
                {
                    m_search = "None";
                }

                if (this.radioSearchGeneral.Checked)
                {
                    m_search = "General";
                }

                if (this.radioSearchByColumn.Checked)
                {
                    m_search = "Individual";
                }

                if (this.radioSearchBoth.Checked)
                {
                    m_search = "Both";
                }

                return m_search;
            }
        }

        public GridSettingsForm()
        {
            InitializeComponent();
        }
    }
}
